﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ShenLanCMS.Models
{
    /// <summary>
    /// 友情链接
    /// </summary>
    public class Link
    {
        [Key]
        public Guid LinkID { get; set; }

        /// <summary>
        /// 站点名称
        /// </summary>
        [Display(Name = "站点名称")]
        [Required(ErrorMessage = "请填写{0}")]     
        [StringLength(32, ErrorMessage = "{0}不能超过{1}个字符")]
        public string SiteName { get; set; }

        /// <summary>
        /// 站点链接
        /// </summary>
        [Display(Name = "站点链接")]
        [Required(ErrorMessage = "请填写{0}")]
        [StringLength(128, ErrorMessage = "{0}不能超过{1}个字符")]
        public string SiteUrl { get; set; }

        /// <summary>
        /// 站点Logo
        /// </summary>
        [Display(Name = "Logo")]
        [StringLength(128, ErrorMessage = "{0}不能超过{1}个字符")]
        public string Logo { get; set; }

        /// <summary>
        /// 加入时间
        /// </summary>
        [Display(Name = "加入时间")]
        public DateTime AddTime { get; set; }

        /// <summary>
        /// 点击量
        /// </summary>
        [Display(Name = "点击量")]
        public int Click { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Display(Name = "排序")]
        public int Sort { get; set; }

        /// <summary>
        /// 状态:0为审核不通过,1为审核通过,2为审核中
        /// </summary>
        [Display(Name = "状态")]
        public int Status { get; set; }
    }
}
